﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UIWindows.Attributes;

namespace UIWindows.Models.ParameterModels
{
    public class RunParameterModel : INotifyPropertyChanged
    {
        /// <summary>
        /// 窗体名
        /// </summary>
        [UIMark("标题", "", 1)]
        [Description("标题")]
        public string Title { get; set; }
        /// <summary>
        /// 扫码重试次数
        /// </summary>
        [UIMark("扫码重试", "次")]
        [Description("扫码重试")]
        public int Retries_Count_ScanCode { get; set; }

        /// <summary>
        /// 扫码失败间隔时间
        /// </summary>
        [UIMark("扫码间隔", "ms")]
        [Description("扫码间隔")]
        public int IntervalTime_ScanCode { get; set; }

        /// <summary>
        /// 窗口活跃时间
        /// </summary>
        [UIMark("活跃时间", "分")]
        [Description("活跃时间")]
        public int ActiveTime { get; set; } = 30;

        /// <summary>
        /// 设备过程参数上传间隔时间
        /// </summary>
        //[UIMark("设备过程时间", "s")]
        [Description("设备过程时间")]
        public int ProcessDataUploadTime { get; set; }

        /// <summary>
        /// 设备在线检测时间
        /// </summary>
        [UIMark("设备在线时间", "s")]
        [Description("设备在线时间")]
        public int EquipmentOnlineInspectionTime { get; set; }

        /// <summary>
        /// 待机弹窗时间
        /// </summary>
        [UIMark("待机弹窗时间", "s")]
        [Description("待机弹窗时间")]
        public int StandbyPopUpWindowTime { get; set; }

        /// <summary>
        /// MES最大连续NG次数
        /// </summary>
        //[UIMark("MES连续NG", "次")]
        [Description("MES连续NG")]
        public int NumberConsecutiveNG { get; set; }

        /// <summary>
        /// 短路测试时间
        /// </summary>
        //[UIMark("短路测试时间", "ms")]
        [Description("短路测试时间")]
        public int ShortCircuitTestTime { get; set; }

        /// <summary>
        /// 最大补液量
        /// </summary>
        [UIMark("最大补液量", "g")]
        [Description("最大补液量")]
        public double Max_Rehydration { get; set; } = 120;


        public event PropertyChangedEventHandler PropertyChanged;
    }
}
